package com.itheima.test02;

public class SystemTest {
    public static void main(String[] args) {//System练习
        //System.currentTimeMillis()获得当前时间 1970-1-1
        long start =  System.currentTimeMillis();
        for(int i=0;i<100000;i++){
            System.out.println(i);
        }
        long end = System.currentTimeMillis();
        System.out.println(end-start);

        //数组复制
        int[] arr1 = {1,2,3,4,5};
        int[] arr2 =new  int[10];
        System.arraycopy(arr1,0,arr2,0,arr1.length);
        System.out.println(arr2);
        for(int i = 0;i<arr2.length;i++){
            System.out.println(arr2[i]);
        }
    }
}
